﻿// 1.3.1.3.4. Fire -> http://bgcoder.com/Contest/Practice/131

using System;

class FireInTheMatrix
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        int to4kite = n - 2;

        for (int row = 0; row < n / 2; row++)
        {
            for (int to4ki = 0; to4ki < n / 2 - 1 - row; to4ki++)
            {
                Console.Write(".");
            }
            Console.Write("#");


            for (int to4ki = 0; to4ki < row * 2; to4ki++)
            {
                Console.Write(".");
            }
            Console.Write("#");


            for (int to4ki = 0; to4ki < n / 2 - 1 - row; to4ki++)
            {
                Console.Write(".");
            }
            Console.WriteLine();
        }

        for (int row = 0; row < n / 4; row++)
        {
            for (int to4ki = 0; to4ki < row; to4ki++)
            {
                Console.Write(".");
            }
            Console.Write("#");

            for (int i = 0; i < to4kite; i++)
            {
                Console.Write(".");
            }
            to4kite -= 2;
            Console.Write("#");
            for (int to4ki = 0; to4ki < row; to4ki++)
            {
                Console.Write(".");
            }
            Console.WriteLine();
        }



        for (int tirenca = 0; tirenca < n; tirenca++)
        {
            Console.Write("-");
        }
        Console.WriteLine();
        for (int row = 0; row < n / 2; row++)
        {
            for (int i = 0; i < row; i++)
            {
                Console.Write(".");
            }
            for (int i = 0; i < n / 2 - row; i++)
            {
                Console.Write("\\");
            }
            for (int i = 0; i < n / 2 - row; i++)
            {
                Console.Write("/");
            }

            for (int i = 0; i < row; i++)
            {
                Console.Write(".");
            }
            Console.WriteLine();
        }
    }
}
